#include "zookeeperhelper.h"
#include "mprpcapplication.h"
#include "string"
#include "iostream"

int main(int argc, char *argv[]) {
    MprpcApplication::Init(argc, argv);
    ZkClient zk;
    zk.Start();
    std::string name = "wansiying";
    zk.Create("/node1/name", name.c_str(), name.size(), ZOO_EPHEMERAL);

    std::string ret = zk.GetData("/node1/name");
    std::cout << "zk /node1/name: " << ret << std::endl;
    return 0;
}